const assert = require('assert');
var Verify = require('../tools/Verify.js')

describe('Name',function(){
    it('不能为空',function(){
    	const ret = Verify.Name('');
        assert(!ret[0],ret[1]);
    });
});

describe('Phone',function(){
    it('不足11位',function(){
    	const ret = Verify.Phone('12300000');
        assert(!ret[0],ret[1]);
    });
    it('非数字',function(){
    	const ret = Verify.Phone('asdf');
        assert(!ret[0],ret[1]);
    });
});

describe('IDCard',function(){
    it('随便输入不能通过',function(){
    	const ret = Verify.IDCard('500232156513');
        assert(!ret[0],ret[1]);
    });
});